<template>
    <div class="modalcontent">
        <Table :columns="columns" :data="modaldata" height="300"></Table>
    </div>
</template>

<script>
    import { Table } from 'view-design'
    export default {
        name: "modalcontent",
        data() {
            return {
                columns: [
                    {
                        title: '不良现象名称',
                        key: 'phenomenon',
                        fixed: 'left',
                        width: 150
                    },
                    {
                        title: '不良原因类型',
                        key: 'type',
                        width: 110,
                        fixed: 'left',
                    },
                    {
                        title: '不良原因名称',
                        key: 'name',
                        width: 110,
                        fixed: 'left',
                    },
                    {
                        title: '不良原因数量',
                        key: 'num',
                        width: 110,
                        fixed: 'left',
                    },
                    {
                        title: '不良占比(%)',
                        key: 'pencent',
                        width: 110,
                        fixed: 'left',
                    },
                    {
                        title: '不良订单',
                        key: 'order',
                        width: 110
                    },
                    {
                        title: '产品名称',
                        key: 'product',
                        width: 110
                    },
                    {
                        title: '操作工人',
                        key: 'operator',
                        width: 110
                    },
                    {
                        title: '加工设备',
                        key: 'equipment',
                        width: 110
                    },
                    {
                        title: '刀具型号',
                        key: 'toolModel',
                        width: 110
                    },
                    {
                        title: '刀具供应商',
                        key: 'toolSupplier',
                        width: 110
                    },
                    {
                        title: '刀具批次',
                        key: 'toolBatch',
                        width: 110
                    },
                    {
                        title: '物料型号',
                        key: 'materialModel',
                        width: 110
                    },
                    {
                        title: '物料供应商',
                        key: 'materialSupplier',
                        width: 110
                    },
                    {
                        title: '物料批次',
                        key: 'materialBatch',
                        width: 150
                    },
                    {
                        title: '日均温度(℃)',
                        key: 'temperature',
                        width: 110
                    },
                    {
                        title: '湿度(%)',
                        key: 'humidity',
                        width: 110
                    }
                ]
            }
        },
        props: ['modaldata'],
        components: {Table},
        mounted(){

        },
        methods:{}
    }
</script>

